import * as tslib_1 from "tslib";
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgValidateForm } from '@farris/devkit';
import { DateConverter } from '@farris/kendo-binding';
var DataGridComponentViewmodelForm = /** @class */ (function (_super) {
    tslib_1.__extends(DataGridComponentViewmodelForm, _super);
    function DataGridComponentViewmodelForm() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    tslib_1.__decorate([
        NgFormControl({
            id: 'jmhdbh',
            name: "{{jmhdbh_90eff549_caf7}}",
            binding: 'jmhdbh',
            updateOn: 'blur',
            defaultI18nValue: '活动编号',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "jmhdbh", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'jmhdmc',
            name: "{{jmhdmc_4df6c9d3_5v7b}}",
            binding: 'jmhdmc',
            updateOn: 'blur',
            defaultI18nValue: '活动名称',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "jmhdmc", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'jmhdrq',
            name: "{{jmhdrq_2996d4bf_yw97}}",
            binding: 'jmhdrq',
            updateOn: 'blur',
            valueConverter: new DateConverter('yyyy-MM-dd'),
            defaultI18nValue: '活动日期',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "jmhdrq", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'jmhdlx',
            name: "{{jmhdlx_a00f63b7_11qk}}",
            binding: 'jmhdlx',
            updateOn: 'blur',
            defaultI18nValue: '活动类型',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "jmhdlx", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'hdys',
            name: "{{hdys_b38409ed_l32z}}",
            binding: 'hdys',
            updateOn: 'blur',
            defaultI18nValue: '活动预算',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "hdys", void 0);
    tslib_1.__decorate([
        NgFormControl({
            id: 'hdfzr',
            name: "{{hdfzr_8dac49e3_3zvi}}",
            binding: 'hdfzr',
            updateOn: 'blur',
            defaultI18nValue: '活动负责人',
        }),
        tslib_1.__metadata("design:type", FormControl)
    ], DataGridComponentViewmodelForm.prototype, "hdfzr", void 0);
    DataGridComponentViewmodelForm = tslib_1.__decorate([
        Injectable(),
        NgValidateForm({
            formGroupName: '加盟推广',
            enableValidate: false
        }),
        Injectable()
    ], DataGridComponentViewmodelForm);
    return DataGridComponentViewmodelForm;
}(Form));
export { DataGridComponentViewmodelForm };
